#ifndef _MAINWINDOW_H_
#define _MAINWINDOW_H_

#include <Windows.h>
#include "GL/gl.h"
#include "StateManager.h"
class CMainWindow
{
public:
	CMainWindow(int iWidth, int iHeight, bool bFullScreen);
	~CMainWindow();

	
	void Update(DWORD dwCurrentTime);
	
	void Draw();
	

	 LPARAM k;
private:
	
	void RegisterWindowClass();
	
	void CreateContext();
	
	void InitGL();

	
	void OnSize(GLsizei width, GLsizei height);
	 static LRESULT CALLBACK OnEvent(HWND Handle, UINT Message, WPARAM wParam, LPARAM lParam);
   
	void ProcessEvent(UINT Message, WPARAM wParam, LPARAM lParam);

	
	HWND	m_hWindow;

    HDC     m_hDeviceContext;
	
    HGLRC   m_hGLContext;    
	 
	
	bool m_bFullScreen;

	CStateManager* m_pStateManager;
};

#endif 